package com.kayeah82.application.avatar.qq.exception;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @author kayeah82
 * */
public class ErrorInfo {

    private final Integer errcode;
    private final String errmsg;


    public ErrorInfo(Integer errcode, String errmsg) {
        this.errcode = errcode;
        this.errmsg = errmsg;
    }


    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }

    public Integer getErrcode() {
        return errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }


}
